home *** CD-ROM | disk | FTP | other *** search
- # start file elsproc1
- beginseg
- segtype LOAD
- segflags R X
- vaddr 0x10000000
- segalign 0x1000
- contents default
- endseg
-
- beginseg
- segtype LOAD
- segflags R W
- segalign 0x1000
- contents default
- endseg
-
- beginseg
- segtype LOAD
- # The use of L in segflags field is key. This
- # allows each process to get a separate copy of
- # the array foo1.
- segflags R W L
- contents
- beginscn .mybss
- scntype NOBITS
- scnflags ALLOC WRITE
- sym foo1
- endscn
- endseg
- # end file elsproc1
-